import setuptools
from setuptools_cythonize import get_cmdclass


with open("README.en.md", "r") as fh:
    long_description = fh.read()


def load_requirements():
    with open("requirements.txt") as f:
        return f.readlines()


REQUIREMENTS = load_requirements()


setuptools.setup(
    install_requires = REQUIREMENTS,
    name="pytbox",
    version="0.0.2",
    cmdclass = get_cmdclass(),
    author="yaozhicheng",
    author_email="yaozhicheng@ict.ac.cn",
    description="tiny python tools wrapper",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://gitee.com/yaozhicheng/pytbox",
    packages=setuptools.find_packages(exclude=["tests","test*"]),
    classifiers=[
        "Programming Language :: Python :: 3",
        "License :: OSI Approved :: Apache License",
        "Operating System :: OS Independent",
    ],
    entry_points={
        'console_scripts':[
            'convert_cty_edt = tbox.instanceseg:app_cityscapes_edt_offset',
            'convert_cty_tsm = tbox.segtransforms:app_cityscape_transform_meta'
        ]
    },
)
